﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script src="~/plugins/mzui/js/mzui.min.js"></script>
    <link href="~/plugins/mzui/css/mzui.min.css" rel="stylesheet" />
    <title>@(string.IsNullOrEmpty(Request.QueryString["real_name2"]) ? "二级" : "三级")会员</title>
</head>
<body class="with-nav-bottom">
    <div id="ss" class="hidden">
        <input name="gid" type="text" class="input" value="@Request.QueryString["gid"]">
    </div>
    <div class="heading white">
        <div class="title text-center"><div class="label success outline">@Request.QueryString["grade"]</div> @Request.QueryString["real_name"] <div class="label success pull-right">一级</div></div>
    </div>
    <div class="text-center"><i class="icon icon-arrow-down"></i></div>
    <div class="heading white @(string.IsNullOrEmpty(Request.QueryString["real_name2"])?"hidden":"")">
        <div class="title text-center"><div class="label primary outline">@Request.QueryString["grade2"]</div> @Request.QueryString["real_name2"] <div class="label primary pull-right">二级</div></div>
    </div>
    <div class="text-center @(string.IsNullOrEmpty(Request.QueryString["real_name2"])?"hidden":"")"><i class="icon icon-arrow-down"></i></div>
    <table class="table bordered white">
        <thead>
            <tr class="purple-pale">
                <th>邀请会员</th>
                <th>会员等级</th>
                <th>会员帐号<div class="label info outline pull-right">@(string.IsNullOrEmpty(Request.QueryString["real_name2"]) ? "二级" : "三级")</div></th>
            </tr>
        </thead>
        <tbody id="tbody">
            <script id="tpl" type="text/html">
                {{each list as item index}}
                <tr onclick="url('{{item.gid}}','{{item.real_name}}','{{item.grade}}','@Request.QueryString["real_name"]','@Request.QueryString["grade"]','{{item.number}}')">
                    <td>{{item.real_name}}{{item.number!=0?"(" + item.number +")":""}}</td>
                    <td>{{item.grade}}</td>
                    <td>{{item.account}} <i class="icon icon-chevron-right primary pull-right @(string.IsNullOrEmpty(Request.QueryString["real_name2"])?"":"hidden") {{item.number==0?"hidden":""}}"></i></td>
                </tr>
                {{/each}}
            </script>
        </tbody>
        <tfoot>
            <tr>
                <th colspan="3" id="nextpage" class="title text-center" onclick="getlist(document.getElementById('pageindex').innerHTML);">显示更多 <i class="icon icon-double-angle-down"></i></th>
            </tr>
        </tfoot>
    </table>
    <nav class="nav affix dock-bottom justified">
        <a onclick="history.go(-1);" class="active text-info">返回上级</a>
    </nav>
    <label id="pageindex" class="hidden">0</label><label id="pages" class="hidden">1</label>
    <label id="Controllers" class="hidden">/home/userlist</label>
    <script src="~/js/template-web.js"></script>
    <script src="~/js/mlist.js"></script>
    <script>
        function url(gid, real_name2, grade2, real_name, grade, number) {
            if (number != 0) {
                self.location = "/home/tjr?gid=" + gid + "&real_name2=" + real_name2 + "&grade2=" + grade2 + "&real_name=" + real_name + "&grade=" + grade;
            }
        }
    </script>
</body>
</html>
